package ca.etsmtl.log430.lab3.gestion;

import ca.etsmtl.log430.lab3.donnee.beans.CourseBean;
public class CourseBuilder {
/*
	 * @param courseName
	 * @param courseID
	 * @param type
	 * @param group
	 * @param day
	 * @param startTime
	 * @param stopTime*/
	public static Course build(CourseBean bean) {
		Course t = new Course(
				bean.getCourseName(),
				bean.getCourseID(),
				CourseType.valueOf(bean.getType()),
				bean.getGroup(),
				bean.getDay(),
				bean.getStartTime(),
				bean.getStopTime()
				);
		return t;
	}

}
